package com.ftg.product.exam.dto;

import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.ftg.product.exam.entity.PaperAnswer;
import com.ftg.product.exam.entity.BaseStudent;
import com.ftg.product.exam.entity.PaperBasedetail;
import com.ftg.product.exam.entity.PaperBase;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
* 记录，当前试卷学生答题情况 ，用于汇总所有的答题记录。暂时先不考虑，练习的情况，二期再考虑 DTO定义
* @author kangjx
* @version 1.0
* @date 2021-01-14
 * Copyright © ftg
*/
@Getter @Setter @Accessors(chain = true)
public class PaperAnswerDTO extends PaperAnswer  {
    private static final long serialVersionUID = 1248986856086711887L;

    /**
    * 关联字段 BaseStudent.stuname
    */
    @BindQuery(comparison = Comparison.EQ, entity = BaseStudent.class, field = "stuname", condition = "this.empcode=id")
    private String empcodeStuname;
    /**
    * 关联字段 PaperBase.title
    */
    @BindQuery(comparison = Comparison.EQ, entity = PaperBase.class, field = "title", condition = "this.papercode=id")
    private String papercodeTitle;
}